package com.baige.service.user.entity;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户额度流水
 * </p>
 *
 * @author wulg
 * @since 2018-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_quota_flow")
public class UserQuotaFlow extends Model<UserQuotaFlow> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 用户id
     */
    @TableField("user_Id")
    private String userId;
    /**
     * 额度类型('1:总额度,2:可用额度')
     */
    @TableField("quota_type")
    private Integer quotaType;
    /**
     * 类型
     */
    private Integer type;
    /**
     * 额度
     */
    private BigDecimal quota;
    /**
     * 扩展字段
     */
    @TableField("extension_field")
    private String extensionField;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
